package org.gd.hellocrypt;

public class Main {

    public static void main(String...args) throws Exception {

        String userdb = "DBREPORT";
        String pwddb = "994746c512ae3c869daace24";
        /*
        String hostdb = "10.1.206.187";
        String portdb = "1521";
        String siddb = "DBREPORT";
        */

        Crypto crypto = new Crypto();


        System.out.print("bytes: ");
        for(byte b: crypto.Encrypt(pwddb, userdb).getBytes()) {
            System.out.print(b + " ");
        }
        System.out.println();
        System.out.println(crypto.Encrypt(pwddb, userdb));
        System.out.println(new String(crypto.Encrypt(pwddb, userdb).getBytes(), "windows-1251"));
        System.out.println(new String(crypto.Encrypt(pwddb, userdb).getBytes(), "UTF-8"));
    }

}
